import { Result, Button } from 'antd'
import { useHistory } from 'react-router-dom'
const NotFound = () => {
  const history = useHistory()
  return (
    <Result
      status="404"
      title="404"
      subTitle="页面好像走丢了，你要等会了"
      extra={
        <Button type="primary" onClick={() => history.push('/home')}>
          Back Home
        </Button>
      }
    />
  )
}

export default NotFound
